package ooday04;

public class Dog extends Anima implements Swim{

    Dog(String name, int age, String color) {
        super(name, age, color);
    }

    void eat() {
        System.out.println("名字是"+name+"年龄为"+age+"岁的"+color+"颜色的小狗正在吃骨头");
    }
    void lookHome(){
        System.out.println("名字是"+name+"年龄为"+age+"岁的"+color+"颜色的小狗正在看家");
    }
    public void Swim() {
        System.out.println("名字是"+name+"年龄为"+age+"岁的"+color+"颜色的小狗正在游泳");
    }
}
